import request from '@/utils/request'

// 查询列表
export function listSurety(query) {
  return request({
    url: '/base/surety/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getSurety(suretyId) {
  return request({
    url: '/base/surety/' + suretyId,
    method: 'get'
  })
}

// 新增
export function addSurety(data) {
  return request({
    url: '/base/surety',
    method: 'post',
    data: data
  })
}

// 修改
export function updateSurety(data) {
  return request({
    url: '/base/surety',
    method: 'put',
    data: data
  })
}

// 删除
export function delSurety(suretyId) {
  return request({
    url: '/base/surety/' + suretyId,
    method: 'delete'
  })
}
